home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2012 February / maximum-cd-2012-02.iso / DiscContents / TheWagerSetup1.2.exe / Assets / Scripts / [53].lua < prev    next >
Encoding:
Text File  |  2011-11-10  |  763 b   |  27 lines

  1. -- Script [53]
  2. Starting = 0;
  3. SeaEvent = 1;
  4.  
  5. if (math.random(1, 100) <= 50) then
  6.  
  7.   ShowStoryText("You don't manage to find any trinkets or artefacts of use over a couple of days' searching, but you do scrounge up a sizeable reward of 2000 pieces for your efforts.");
  8.   
  9.   PlayerCash = PlayerCash + 2000;
  10.  
  11.   AddDays(2);
  12.   
  13.   AddCaptainsLog("Searched a ship graveyard for days, and found 2000 pieces.");
  14.  
  15. else
  16.  
  17.   ShowStoryText("Nearly a week passes and you find little but old boots and broken ships' wheels. All that you manage to get yourself is a measly 5 pieces and a rather frustrated crew.");
  18.  
  19.   PlayerCash = PlayerCash + 5;
  20.  
  21.   AddDays(6);
  22.  
  23.   AddCaptainsLog("Searched a ship graveyard for days, and found a measly 5 pieces.");
  24.  
  25. end
  26.  
  27.